#####################################################################
# Main file that replicates all the results
#####################################################################

# Set working directory
setwd("/Users/kasparwu/Dropbox/research/SC/SC with Victor and Yinchu/Asymptotics Paper/JPE data editor/submission2/replication_package_data_editor_submission_v2")

# Start clock
Sys.time()

# Figure 1
source("code/auxiliary scripts/intro_bias.R")

# Figure 2
source("code/auxiliary scripts/intro_nw.R")

# Figure 3
source("code/auxiliary scripts/tradeoff.R")

# Table 1
source("code/auxiliary scripts/RAE.R")

# Table 3, Figures 5-6
source("code/auxiliary scripts/sim_sweden_small.R")

# Figure 4, Tables 4-5
source("code/auxiliary scripts/app_sweden.R")

# Table 6
source("code/auxiliary scripts/sim_sweden_large.R")

# Figure 7
source("code/auxiliary scripts/comparison_permutation.R")

# Figure 8
source("code/auxiliary scripts/time_varying_weights.R")

# Total runtime
Sys.time()
